import request from '@/utils/request'

const BASE_URL = '/depot/region'

// 分区管理分页查询
export function getDepotRegionPageList(data) {
  return request({
    url: BASE_URL + '/getDepotRegionPageList',
    method: 'post',
    data
  })
}
// 新增
export function addDepotRegion(data) {
  return request({
    url: BASE_URL + '/addDepotRegion',
    method: 'post',
    data
  })
}
// 删除
export function deleteDepotRegion(data) {
  return request({
    url: BASE_URL + '/deleteDepotRegion',
    method: 'post',
    data
  })
}
// 编辑
export function modifyDepot(data) {
  return request({
    url: BASE_URL + '/modifyDepot',
    method: 'post',
    data
  })
}
// 详情
export function getDepotRegionInfo(data) {
  return request({
    url: BASE_URL + '/getDepotRegionInfo',
    method: 'post',
    data
  })
}
// 列表下拉
export function getDepotRegionList(params) {
  return request({
    url: BASE_URL + '/getDepotRegionList',
    method: 'post',
    params
  })
}
// 列表下拉
export function getDepotRegionListAllStatus(params) {
  return request({
    url: BASE_URL + '/getDepotRegionListAllStatus',
    method: 'post',
    params
  })
}
// 启用
export function setDepotRegionStatusEnable(data) {
  return request({
    url: BASE_URL + '/setDepotRegionStatusEnable',
    method: 'post',
    data
  })
}
// 禁用
export function setDepotRegionStatusDisable(data) {
  return request({
    url: BASE_URL + '/setDepotRegionStatusDisable',
    method: 'post',
    data
  })
}
